<?php
/**
 *
 *
 */
namespace Yz\modules\Uploads;
class Item_UploadedImage
    extends Item_Upload
{


    /**************************
     *      Public methods    *
     **************************/

    public function assignDimensionsFromImage(\Yz_Image_Interface $image)
    {
        $this->__dict__['width'] = $image->getWidth();
        $this->__dict__['height'] = $image->getHeight();
        return $this;
    }

    /** fail, width can not be set directly; use assignDimensionsFromImage
     *  @throw Yz_Exception
     */
    public function setWidth($v)
    {
        throw new \Yz_Exception('Can not set width directly');
    }
    /** fail, height can not be set directly; use assignDimensionsFromImage
     *  @throw Yz_Exception
     */
    public function setHeight($v)
    {
        throw new \Yz_Exception('Can not set height directly');
    }


} // class
